<?php

namespace app\common\command;

use app\web\controller\Index;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class DealOfflineOrder extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('deal_offline_order')
            ->setDescription('处理线下订单');
    }

    protected function execute(Input $input, Output $output)
    {
        $re = (new Index($this->app))->orderQuery();
        $output->writeln('执行结束:' . $re);
    }
}